package com.woniu.ucenterservice.dao;

import com.woniu.ucenterservice.pojo.Ts;
import com.woniu.ucenterservice.vo.TsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TsMapper {
    int deleteByPrimaryKey(Integer tid);

    int insert(Ts record);

    int insertSelective(Ts record);

    Ts selectByPrimaryKey(Integer tid);

    int updateByPrimaryKeySelective(Ts record);

    int updateByPrimaryKey(Ts record);
    @Select("select * from ts where t_user=#{tUser}")
    List<Ts> selectByUsername(String tUser);
    List<Ts> selectAllTs(String tUser, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize, TsVo tsVo) ;
}